package com.itheima.service.db.impl;


import com.itheima.domain.combat.Soul;
import com.itheima.mapper.SoulMapper;
import com.itheima.service.db.SoulService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class SoulServiceImpl implements SoulService {
    @Autowired
    private SoulMapper soulMapper;
    //根据分数查询灵魂
    @Override
    public Soul findSoul(Integer score) {
       Soul soul = soulMapper.findSoulByScore(score);
        return soul;
    }
}
